package com.dx.financehy.modules.security.entity.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * <pre>
 * @描述：
 * @作者：CLD
 * @创建时间：2022-03-22 15:42
 * </pre>
 **/
@ApiModel(value = "微信小程序登录DTO")
@Data
public class WxAuthDTO {

    @ApiModelProperty(value = "appId", required = true)
    @NotBlank(message = "appId不能为空")
    private String appId;

    @ApiModelProperty(value = "iv", required = true)
    //@NotBlank(message = "iv不能为空")
    private String iv;

    @ApiModelProperty(value = "加密数据", required = true)
    //@NotBlank(message = "加密数据不能为空")
    private String encryptedData;

    @ApiModelProperty(value = "code", required = true)
    @NotBlank(message = "code不能为空")
    private String code;

    @ApiModelProperty(value = "商家id", required = true)
    private String merchantId;

}
